(:: pragma bea:global-element-return element="ns0:ListValueMgmtServRq" location="../../WSDL/ListValueManagementService.xsd" ::)

declare namespace ns0 = "http://www.banesco.com/ServicesPortfolio/ListValueManagementService";
declare namespace xf = "http://tempuri.org/GestorDesembolsoMasivoInputAdapterService/xq/DVMLookupRequest/";

declare function xf:DVMLookupRequest($dvmName as xs:string,
    $inputValue as xs:string,
    $inputField as xs:string,
    $outputField as xs:string)
    as element(ns0:ListValueMgmtServRq) {
        <ns0:ListValueMgmtServRq>
            <ns0:dvmName>{ $dvmName }</ns0:dvmName>
            <ns0:inputValue>{ $inputValue }</ns0:inputValue>
            <ns0:inputField>{ $inputField }</ns0:inputField>
            <ns0:outputField>{ $outputField }</ns0:outputField>
        </ns0:ListValueMgmtServRq>
};

declare variable $dvmName as xs:string external;
declare variable $inputValue as xs:string external;
declare variable $inputField as xs:string external;
declare variable $outputField as xs:string external;

xf:DVMLookupRequest($dvmName,
    $inputValue,
    $inputField,
    $outputField)